package com.gdit.zax.thread;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.gdit.zax.entitys.PushMsg;
import com.gdit.zax.entitys.Remind;
import com.gdit.zax.utils.DBPushMessage;

/**
 * 一条百度提醒线程
 * @author lenovo
 *
 */
public class RemindThread extends Thread{

	
	private PushMsg msg;
	public RemindThread(PushMsg msg) {
		this.msg = msg;
	}
	
	@Override
	public void run() {
		try {
			sleep(msg.getWaittime());
			
			//百度推送发起通知
			String uid = msg.getDbUserId();
			if (uid!=null) {
				DBPushMessage.sendMessage(uid, "这里是测试信息！");				
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
